﻿namespace Bilibili.Model.Article
{
    public sealed class Articles
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Summary { get; set; }
        public bool HasSummary => !string.IsNullOrEmpty(Summary);
        public string Banner_Url { get; set; }
        public string Logo
        {
            get
            {
                if (HasBanner)
                    return Banner_Url + "@234w_176h.png";
                return string.Empty;
            }
        }
        public string BannerImage
        {
            get
            {
                if (HasBanner)
                    return Banner_Url + "@500w.jpg";
                return string.Empty;
            }
        }
        public bool HasBanner => !string.IsNullOrEmpty(Banner_Url);
        public Articles Category { get; set; }
        public string Name { get; set; }
        public Articles Author { get; set; }
        public bool HasAuthor => Author != null;
        public string Face { get; set; }
        public Articles Stats { get; set; }
        public int View { get; set; }
        public int Like { get; set; }
        public int Reply { get; set; }
    }
}